<!doctype html>
<html>
<head>
<title>WonTube</title>
<#include "/include/meta.html">
<meta name="description" content="WonTube"/>
<meta name="keywords" content="WonTube,Video,Music"/>
<#include "/include/css.html">
<script type="text/javascript">	
	function isvalid(path, context){
		var ss = ['movie', 'tv', 'music', 'featured'];
		for(var i = 0; i < ss.length; i++){
	        var s = ss[i];
	        if(path.indexOf(context + "/" + s) == 0){
	        	return true;
	        }
		}
		return false;
	}
	
	(function(){			
		var context = "${contextPath}";
	    var path = location.pathname;
	    
		if(path.indexOf(context + "/world/") == 0){
			location.href = context + "/world/404";
		}else if( ! isvalid(path, context)){
		    location.href = context + "/movie/";
		}
	})();	
</script>
</head>
<body>
<#include "/include/header.ftl">
<div id="error">
	<div class="error_cont">
    <div class="img"><img src="${contextPath}/style/images/404_img.png" border="0" /></div>
    <h3>Sorry! That page doesn't seem to exist.</h3>
    <p>Click here to return to <a href="${contextPath}/">home page</a>.</p>
    </div>
</div>
<#include "/include/footer.ftl">
</body>
</html>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript" src="${jsRoot}/all.js?${version}"></script>
<script type="text/javascript" src="${jsRoot}/social/ga.js?${version}"></script>
<script type="text/javascript">
$("#search_box").smenu({
	defaultValue : 'Search for Videos...',
	onchange : function(value) {
		location.href = "${contextPath}/results?search=" + encodeURIComponent(value);
	},
	selectedClass : 'curr'
});
_gaq.push(['_trackPageview', '/404.html?page=' + document.location.pathname + document.location.search + '&from=' + document.referrer]);
</script>
